<div class="al-modal-view">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" ng-click="cancel()">
            <span aria-hidden="true" class="glyphicon glyphicon-remove"></span>
            <span class="sr-only">Close</span>
        </button>
        <h4 class="modal-title ok-color">资源选择</h4>
    </div>
    <div class="modal-body">
        <form class="form-horizontal al-search-container" role="form">
            <div class="form-group">
                <label class="col-sm-2 control-label">名称</label>
                <div class="col-sm-6">
                    <input class="form-control" ng-model="search.name" type="text" placeholder=""/>
                </div>
                <div class="col-sm-2">
                    <button type="button" ng-click="queryData()" class="btn btn-success al-float-right">查询</button>
                </div>
            </div>
        </form>
        <table ng-table="tableParams"
               class="table  table-bordered table-striped table-condensed al-table-container">
            <thead>
            <tr>
                <td>选择</td>
                <td>名称</td>
                <td>描述</td>
                <td>类型</td>
                <td>状态</td>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in $data">
                <td>
                    <input ng-disabled="chkBox.disabled[item.id]" type="checkbox" ng-model="chkBox.ids[item.id]" ng-change="pickData(item)"/>
                </td>
                <td>{{item.resource}}</td>
                <td>{{item.description}}</td>
                <td>{{item.type|constantTransfer:resourceTypeList}}</td>
                <td>{{item.enabled|constantTransfer:enabledList}}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="modal-footer">
        <button class="btn btn-warning no-border" type="button" ng-click="cancel()">取消</button>
        <button class="btn btn-primary no-border" type="button" ng-click="confirm()" ng-disabled="modalForm.$invalid">确定</button>
    </div>
</div>